MyExit
Handles calls tojava.lang.System.exit
. This is how you would define your input function if you were to name itMyExit
:
Boolean MyExit (JMSessionRef session, int value);
session
- The session to receive the text input.
value
- The buffer to hold the input.
- function result
- A Boolean value. If true, then the current thread is killed. If false, a QUIT Apple event is sent to the current process.
DISCUSSION
When invoking the Java runtime environment usingJMOpenSession
, you must designate a callback function (calledMyExit
here) to handle requests to quit. When a Java applet or application callsjava.lang.System.exit
, the session callsMyExit
. Note that instead of passing false back to the session, you can simply dispose of the session and exit from within theMyExit
function.